Conversation
There was a problem hiding this comment.
Pull request overview
This PR standardizes human-facing CLI messaging across the Grounds CLI, shifts grounds push to be the primary deploy entrypoint, and refreshes help/example text so common workflows read more consistently.
Changes:
- Added shared render helpers for status badges, detail lines, and inline command formatting, then applied them across auth, init, workspace, push, preview, bundle, DevSpace, and doctor flows.
- Made
grounds pushthe direct deploy command while keepingpush listandpush retry, with stricter argument handling and new regression tests around invalid command shapes. - Updated command descriptions/examples and added tests for UX-sensitive output paths.
Reviewed changes
Copilot reviewed 34 out of 34 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| internal/render/status.go | Reworked paused-workspace messaging to use shared render helpers. |
| internal/render/status_test.go | Updated paused status assertions for new warning output. |
| internal/render/message.go | Added shared status/detail/command render helpers. |
| internal/render/message_test.go | Added unit coverage for new render helpers. |
| cmd/grounds/commands/version.go | Refreshed version command summary and examples. |
| cmd/grounds/commands/root.go | Updated root CLI descriptions and --output help text. |
| cmd/grounds/commands/root_test.go | Added regression test for updated --output usage text. |
| cmd/grounds/commands/push/retry.go | Switched retry confirmation output to shared status rendering. |
| cmd/grounds/commands/push/push.go | Made root push command perform deploys directly and tightened arg handling/messages. |
| cmd/grounds/commands/push/push_test.go | Added coverage for new push command structure, arg validation, and output helpers. |
| cmd/grounds/commands/push/list.go | Added arg validation and shared pagination warning rendering. |
| cmd/grounds/commands/preview/preview.go | Updated preview help text and human-readable output formatting. |
| cmd/grounds/commands/preview/preview_test.go | Added coverage for preview pin summary helper. |
| cmd/grounds/commands/logs/logs.go | Improved logs command help text and examples. |
| cmd/grounds/commands/logs/logs_test.go | Added regression test for logs examples. |
| cmd/grounds/commands/logout.go | Switched logout success output to shared status rendering. |
| cmd/grounds/commands/logout_test.go | Added logout output regression test. |
| cmd/grounds/commands/login.go | Switched login flow messaging to shared status/detail rendering. |
| cmd/grounds/commands/login_test.go | Added coverage for login subject formatting. |
| cmd/grounds/commands/init.go | Updated init success output to shared status/detail format. |
| cmd/grounds/commands/init_test.go | Added assertion for new init output text. |
| cmd/grounds/commands/doctor.go | Reused shared render helpers for doctor results. |
| cmd/grounds/commands/devspace/generate.go | Switched DevSpace generate success output to shared status rendering. |
| cmd/grounds/commands/devspace/generate_test.go | Added helper coverage and renamed one test case for clarity. |
| cmd/grounds/commands/devspace/devspace.go | Added examples to the DevSpace command. |
| cmd/grounds/commands/cluster/up.go | Added examples and updated workspace/bundle result output formatting. |
| cmd/grounds/commands/cluster/up_test.go | Added regression test for bundle result rendering. |
| cmd/grounds/commands/cluster/status.go | Switched missing-workspace message to shared warning rendering. |
| cmd/grounds/commands/cluster/down.go | Switched pause confirmation to shared status rendering. |
| cmd/grounds/commands/cluster/delete.go | Updated delete warnings/results to shared status/detail rendering. |
| cmd/grounds/commands/cluster/cluster.go | Added cluster command examples. |
| cmd/grounds/commands/bundle/show.go | Updated bundle show help text to use inline command formatting. |
| cmd/grounds/commands/bundle/list.go | Updated bundle list empty-state output and help text. |
| cmd/grounds/commands/bundle/bundle.go | Added bundle command examples. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
b774403 to
13dc41b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
grounds pushthe primary deploy command while preservingpush listandpush retry.--outputflag scope and add regression coverage for UX-sensitive output paths.Impact
doctorandversion --checkUX.grounds push pushandgrounds push list unexpectednow fail before Gradle/auth/API work.Test Plan
go test ./...go build ./cmd/groundsrg -n "→|✔|⚠|'grounds [^']+'" cmd/grounds internal/renderdoctor,logs --help, and invalid push args